<?php

class Involved_NewsModel extends BaseModel
{

    protected $table = 'news';

    /**
     *资讯列表
     * @return mixed
     */
    public function NewsSelect()
    {
        return DB::table($this->table)
            ->select('news_id','title','content','type','created','status','author','img','source')
            ->get();
    }
    public function GetNewsId($news_id)
    {
        return DB::table($this->table)
            ->select('news_id','title','content','type','created','status','author','img','source')
            ->where('news_id',$news_id)
            ->first();
    }
}
